The wd40 can be absorbed into the rotor surface and contaminate the pads leading to poor braking performance. Oils near brakes is never a good idea.
I painted the rotor hats with high heat brake caliper paint. No issues so far. Other manufacturers offer zinc coating or powdercoated/painted hats. I know stoptech has the latter available.